







<div class="x-body">
  <form class="layui-form form_single" action="{:url()}" method="post">
    <div class="layui-form-item">
      <label  class="layui-form-label">
       用户名
      </label>
      <div class="layui-input-inline">
        <input type="text" id="username" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)" name="username" value="{$info['username']|default=''}"
               autocomplete="off" class="layui-input" disabled>
      </div>
      <div class="layui-form-mid layui-word-aux">
        (不可修改)
      </div>

    </div>
    <div class="layui-form-item">
      <label  class="layui-form-label">
        分享玩家总数
      </label>
      <div class="layui-input-inline">
        <input type="text"  name="fdsf" value="{$info['children_count']|default=0}"
               autocomplete="off" class="layui-input" disabled>

      </div>
    </div>

    <div class="layui-form-item">
      <label for="logo" class="layui-form-label">
        <span class="x-red">*</span>会员头像
      </label>
      <div id="logo" class="layui-input-block">
        {assign name="cover_id" value="$info.cover_id|default='0'" /}
        {:widget('file/index', ['name' => 'cover_id', 'value' => $cover_id, 'type' => 'img'])}
      </div>
      <!--<div class="layui-form-mid layui-word-aux">-->
      <!--(请上传单张封面图片)-->
      <!--</div>-->
    </div>
    <div class="layui-form-item">
      <label for="password" class="layui-form-label">
        密码
      </label>
      <div class="layui-input-inline">
        <input type="password" id="password" name="password"
               autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">
        (用户密码,不能小于6位)
      </div>
    </div>
    <div class="layui-form-item">
      <label for="pin_password" class="layui-form-label">
        支付密码
      </label>
      <div class="layui-input-inline">
        <input type="password" id="pin_password" name="pin_password"
               autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">
        (支付密码，用于支付等安全操作)
      </div>
    </div>
    <div class="layui-form-item">
      <label for="mobile" class="layui-form-label">
        手机号
      </label>
      <div class="layui-input-inline">
        <input type="text" id="mobile" name="mobile" value="{$info['mobile']|default=''}"
               autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">
        (手机号)
      </div>
    </div>
    {if condition="$info['children_count'] eq 0"}
    <div class="layui-form-item">
      <label for="game_point_money" class="layui-form-label">
        游戏返点值
      </label>
      <div class="layui-input-inline">
        <input type="number" id="game_point_money" name="game_point_money" value="{$info['game_point_money']|default=0}"
               autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">
        (最大值：{$info->max_game_point}-最小值：{$info->min_game_point})
      </div>
    </div>
    {/if}

    <div class="layui-form-item">
      <label for="level_id" class="layui-form-label">
        <span class="x-red">*</span>等级
      </label>
      <div class="layui-input-inline">
        <select id="level_id" name="level_id">
          {volist name='level' id='vo'}

          <option value="{$vo.id}" {notempty name="info" }{if condition="  $info['level_id'] eq $vo['id']"} selected {/if}{/notempty}>{$vo.level_name}</option>
          {/volist}
        </select>
      </div>
      <div class="layui-form-mid layui-word-aux">
        (等级)
      </div>

    </div>
    <div class="layui-form-item">
      <div class="layui-form-item">
        <label  class="layui-form-label">
          正反面下注开关
        </label>
        <div class="layui-input-inline">
          <input type="checkbox" name="just_switch" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.just_switch" value='1'} checked='checked' {/eq}{/notempty}  lay-text="开启|关闭">
        </div>
      </div>

    </div>

    <div class="layui-form-item">
      <label for="is_just" class="layui-form-label">
        <span class="x-red">*</span>正反面下注
      </label>
      <div class="layui-input-inline">
        <select id="is_just" name="is_just">


          <option value="1" {notempty name="info" }{if condition="  $info['is_just'] eq 1 "} selected {/if}{/notempty}>正面</option>
          <option value="2" {notempty name="info" }{if condition="  $info['is_just'] eq 2 "} selected {/if}{/notempty}>反面</option>
        </select>
      </div>

    </div>

    <div class="layui-form-item">
      <label  class="layui-form-label">
        是否公司账户
      </label>
      <div class="layui-input-inline">
        <input type="checkbox" name="is_company" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.is_company" value='1'} checked='checked' {/eq}{/notempty}  lay-text="是|否">
      </div>
    </div>

    <div class="layui-form-item">
      <label  class="layui-form-label">
        是否方案号
      </label>
      <div class="layui-input-inline">
        <input type="checkbox" name="is_plan" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.is_plan" value='1'} checked='checked' {/eq}{/notempty}  lay-text="是|否">
      </div>
    </div>


    <div class="layui-form-item">
      <label  class="layui-form-label">
        是否支持庄家下注
      </label>
      <div class="layui-input-inline">
        <input type="checkbox" name="is_banker" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.is_banker" value='1'} checked='checked' {/eq}{/notempty}  lay-text="是|否">
      </div>
    </div>

    <!--<div class="layui-form-item">-->
      <!--<label for="describe" class="layui-form-label">-->
        <!--描述-->
      <!--</label>-->
      <!--<div class="layui-input-inline">-->
        <!--<textarea id="describe" class="layui-textarea" name="describe" maxlength="80" onchange="this.value=this.value.substring(0, 80)" onkeydown="this.value=this.value.substring(0, 80)" onkeyup="this.value=this.value.substring(0, 80)"    rows="3" placeholder="请输入文章描述信息/简介">{$info['describe']|default=''}</textarea>-->
      <!--</div>-->
      <!--<div class="layui-form-mid layui-word-aux">-->
        <!--(文章描述信息/简介)-->
      <!--</div>-->
    <!--</div>-->

    <div class="box-footer">

      <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

      {include file="layout/edit_btn_group"/}

    </div>

  </form>
</div>



<script type="text/javascript">
  layui.use('laydate', function(){
    var laydate = layui.laydate;

    //执行一个laydate实例
    laydate.render({
      elem: '#bonus_time' //指定元素
    });


  });

  ob.setValue("is_hide", {$info.is_hide|default=0});
  ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
  ob.setValue("pid", {$info.pid|default=0});

</script>
